class Point {
    #x;
    #y;

    constructor(x, y) {
        this.#x = x;
        this.#y = y;
    }

    equals(point) {
        return this.#x === point.#x && this.#y === point.#y;
    }
}
var foo1 = new Point(1, 2);
var foo2 = new Point(1, 2);
console.log(Object.keys(foo1));
console.log(foo1.equals(foo2));